package com.edu.entity.blog;

import com.baomidou.mybatisplus.annotation.TableField;
import com.edu.entity.user.EduUser;

import java.util.Date;

/**
 * @author: LuckyBear
 * @date: 2018-11-08 10:00
 * @description:
 */
public class blogComment {
    private int id;     //主键id（评论编号）
    private int otherid;        //给谁的评论（被评论人的id）
    private Date commenttime;   //评论时间
    private int commenterid;    //评论人id
    private String commentcontent;  //评论内容
    private int articleid;      //博客id

    @TableField(exist = false)
    private EduUser eduUser;

    public blogComment() {
    }

    public blogComment(int id, int otherid, Date commenttime, int commenterid, String commentcontent, int articleid, EduUser eduUser) {
        this.id = id;
        this.otherid = otherid;
        this.commenttime = commenttime;
        this.commenterid = commenterid;
        this.commentcontent = commentcontent;
        this.articleid = articleid;
        this.eduUser = eduUser;
    }

    public blogComment(int otherid, Date commenttime, int commenterid, String commentcontent, int articleid, EduUser eduUser) {
        this.otherid = otherid;
        this.commenttime = commenttime;
        this.commenterid = commenterid;
        this.commentcontent = commentcontent;
        this.articleid = articleid;
        this.eduUser = eduUser;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOtherid() {
        return otherid;
    }

    public void setOtherid(int otherid) {
        this.otherid = otherid;
    }

    public Date getCommenttime() {
        return commenttime;
    }

    public void setCommenttime(Date commenttime) {
        this.commenttime = commenttime;
    }

    public int getCommenterid() {
        return commenterid;
    }

    public void setCommenterid(int commenterid) {
        this.commenterid = commenterid;
    }

    public String getCommentcontent() {
        return commentcontent;
    }

    public void setCommentcontent(String commentcontent) {
        this.commentcontent = commentcontent;
    }

    public int getArticleid() {
        return articleid;
    }

    public void setArticleid(int articleid) {
        this.articleid = articleid;
    }

    public EduUser getEduUser() {
        return eduUser;
    }

    public void setEduUser(EduUser eduUser) {
        this.eduUser = eduUser;
    }

    @Override
    public String toString() {
        return "blogComment{" +
                "id=" + id +
                ", otherid=" + otherid +
                ", commenttime=" + commenttime +
                ", commenterid=" + commenterid +
                ", commentcontent='" + commentcontent + '\'' +
                ", articleid=" + articleid +
                ", eduUser=" + eduUser +
                '}';
    }
}
